<div class="container">
    <div class="top">
        <h1 class="page__title" style="background-color:#479de6">工作事項<span id="PageBack" class="back">返回</span><a class="home fa fa-home ajax-page" id="home" href=".html"></a></h1>
    </div>
    <div class="page" id="page" style="background-color:#ffffff;">
        <div class="pagebg"></div>
        <div class="pagemain">
            <div class="weui-panel weui-panel_access" style="border-width: 1px; border-style: solid; border-color: rgb(242, 199, 199); border-radius: 5px; padding: 5px; margin: 5px;">
                <div class="weui-panel__bd" id="pandel_bd122891">
                    <div class="weui-flex" style="">
                        <div id="flex_item2117480" class="weui-flex_item weui-flex_item2117480" style="flex-basis:auto;padding: 0px !important;width:100%;">
                            <div class="weui-form" style="text-align: left; vertical-align: top;">
                                <div class="weui-form-item">
                                    <a  href="javascript:history.back(-1);" class="weui-btn weui-btn_mini   weui-btn_default  ">返回</a>
                                </div>
                            </div>
                        </div>
                        <div id="flex_item2117481" class="weui-flex_item weui-flex_item2117481" style="flex-basis:auto;padding: 0px !important;width:100%;">
                        </div>
                    </div>
                    <div class="" style="font-size: 18px;">
                        <span style="font-size: 24px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;"><strong>案場: &nbsp; {$task.anchang.name}</strong></span>
                    </div>
                    <div class="weui-flex" style="text-align: center; vertical-align: middle;">
                        <div id="flex_item221060" class="weui-flex_item weui-flex_item221060" style="flex-basis:auto;padding: 0px !important;width:100%;">
                            <div class="weui-form" style="color: rgb(112, 68, 68); padding: 5px; margin: 5px;">
                                <div class="weui-form-item">
                                    <a data-index="3765290" href="tel:{$task.anchang.contact1_mobile}" class="weui-btn  shadow-blur  weui-btn_plain-primary  ">打電話</a>
                                </div>
                            </div>
                        </div>
                        <div id="flex_item221061" class="weui-flex_item weui-flex_item221061" style="flex-basis:auto;padding: 0px !important;width:100%;">
                            <div class="weui-form" style="text-align: center; font-size: 18px; border-width: 1px; border-style: solid; border-color: rgb(255, 255, 255); border-radius: 0px; padding: 5px; margin: 5px;">
                                <div class="weui-form-item">
                                    <a data-index="3765292" href="{$task.anchang.mapurl}" class="weui-btn  shadow-blur  weui-btn_plain-primary  ">導航</a>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="">
                        <span style="font-size: 20px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;"><strong>提醒日期</strong></span>
                    </div>
                    <div class="">
                        <div class="" style="border-width: 1px; border-style: solid; border-color: rgb(29, 86, 153); border-radius: 5px; padding: 2px; margin: 2px;">
                            <span style="font-size: 18px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;">&nbsp;{$task.remind_date}</span>
                        </div>
                    </div>

                    <div class="">
                        <span style="font-size: 20px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;"><strong>標題</strong></span>
                    </div>
                    <div id="view477132" class="">
                        <div class="" style="border-width: 1px; border-style: solid; border-color: rgb(29, 86, 153); border-radius: 5px; padding: 2px; margin: 2px;">
                            <span style="font-size: 18px; font-family: 微软雅黑, &quot;Microsoft YaHei&quot;;">&nbsp;{$task.title}</span>
                        </div>
                    </div>
                    <div class="">
                    </div>
                    <div class="">
                        <strong><span style="font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 20px;">內容</span></strong>
                    </div>
                    <div id="view319300" class="" style="border-width: 1px; border-style: solid; border-radius: 5px; letter-spacing: 0px; padding: 2px; margin: 2px;">
                        <div class="">
                            <span style="font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 14px;">&nbsp;{$task.content}</span>
                        </div>
                    </div>
                    <div class="">
                    </div>
                </div>

                {if !$isanchanguser}
                <div class="weui-panel__ft" >
                    <div class="weui-flex" style="vertical-align: middle;">
                        <div id="flex_item5707680" class="weui-flex_item weui-flex_item5707680" style="flex-basis:auto;padding: 0px !important;width:100%;">
                            <div class="weui-form" style="text-align: center; vertical-align: middle; padding: 5px; margin-top: 5px; margin-bottom: 5px; margin-left: 5px;">
                                <div class="weui-form-item">
                                    <a id="kssg"   href="javascript:;" class="weui-btn    weui-btn_plain-primary  weui-btn_disabled">{$kssg}</a>
                                </div>
                            </div>
                        </div>
                        <div id="flex_item5707681" class="weui-flex_item weui-flex_item5707681" style="flex-basis:auto;padding: 0px !important;width:100%;">
                            <div class="weui-form" style="text-align: center; vertical-align: middle; padding-top: 5px; padding-bottom: 5px; padding-left: 5px; margin: 5px;">
                                <div class="weui-form-item">
                                    <a id="sgwb" href="{:url('home/sgwb').'?ids='.$task.id}" class="weui-btn    weui-btn_plain-primary  ">施工完畢</a>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="weui-form" style="padding: 5px; margin: 5px;">
                        <div class="weui-form-item">
                            <a data-index="5970310" href="{:url('home/maintenancelog').'?ids='.$task.id}" class="weui-btn    weui-btn_primary  ">維修歷史紀錄</a>
                        </div>
                    </div>
                    <div class="weui-form" style="padding: 5px; margin: 5px;">
                        <div class="weui-form-item">
                            <a data-index="1493590" href="{:url('home/updatetask').'?ids='.$task.id}" class="weui-btn    weui-btn_primary  ">調整工作提醒</a>
                        </div>
                    </div>
                    <div class="">
                        <strong><span style="font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 18px;">新增維修紀錄</span></strong>
                    </div>
                    <form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
                        <div class="row-form clearfix">
                            <div class="">
                                <div class="weui-cell" style="text-align: left;">
                                    <div class="weui-cell__bd"> <textarea rows="3" placeholder="請輸入維修紀錄" name="row[content]" id="983628" class="weui-textarea ">{$content1}</textarea> </div>
                                </div>
                                <div class="weui-cells__title  ">
                                    上傳圖片
                                </div>
                                <div class="col-xs-12 col-sm-8">
                                    <div class="input-group">
                                        <input id="c-images" class="form-control" size="500" name="row[images]" type="text" value="{$task.images}">
                                        <div class="input-group-addon no-border no-padding">
                                            <span><button type="button" id="plupload-images" class="btn btn-danger plupload" data-input-id="c-images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>

                                        </div>
                                        <span class="msg-box n-right" for="c-images"></span>
                                    </div>
                                    <ul class="row list-inline plupload-preview" data-template="customtpl" id="p-images"></ul>
                                </div>
                                <div class="weui-cells__title  ">
                                    &nbsp;&nbsp;
                                </div>
                                <div class="weui-form">
                                    <div class="weui-form-item">
                                        <button type="submit" class="weui-btn   weui-btn_primary  ">保存</button>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </form>

                </div>
                {else}
                <div class="weui-panel__ft" >
                    <div class="weui-form" style="padding: 5px; margin: 5px;">
                        <div class="weui-form-item">
                            <a  href="{:url('home/maintenancelog').'?ids='.$task.id}" class="weui-btn    weui-btn_primary  ">維修歷史紀錄</a>
                        </div>
                    </div>
                </div>
                {/if}
            </div>
            <div class="weui-tabbar .tabbar868194" id="tabbar868194" style="width: 100%;">
                <a href="{:url('home/index')}" page="index" class="weui-tabbar__item  weui-bar__item_on "> <img src="__CDN__/assets/images/icon1.png" img="__CDN__/assets/images/icon1c.png" selectimg="__CDN__/assets/images/icon1.png" alt="" class="weui-tabbar__icon" style="" /> <p class="weui-tabbar__label weui-tabbar__label413181">首頁</p> </a>
                <a href="{:url('home/cbzy')}" page="cbzy" class="weui-tabbar__item "> <img src="__CDN__/assets/images/icon2c.png" img="__CDN__/assets/images/icon2c.png" selectimg="__CDN__/assets/images/icon2.png" alt="" class="weui-tabbar__icon" style="" /> <p class="weui-tabbar__label weui-tabbar__label413181">抄表作業</p> </a>
                <a href="{:url('home/anchanglist')}" page="anchanglist" class="weui-tabbar__item  "> <img src="__CDN__/assets/images/icon_purchase04.png" img="__CDN__/assets/images/icon_purchase04.png" selectimg="__CDN__/assets/images/icon_purchase04_pressed.png" alt="" class="weui-tabbar__icon" style="" /> <p class="weui-tabbar__label weui-tabbar__label281124">案場</p> </a>
                <a href="{:url('user/profile')}" page="account" class="weui-tabbar__item  "> <img src="__CDN__/assets/images/icon3c.png" img="__CDN__/assets/images/icon3c.png" selectimg="__CDN__/assets/images/icon3.png" alt="" class="weui-tabbar__icon" style="" /> <p class="weui-tabbar__label weui-tabbar__label413181">帳號</p> </a>

               <style type="text/css">
                    .tabbar868194 {}

                    .weui-tabbar__label868194 {
                        color: #999999 !important;
                    "

                    }

                    .weui-tabbar__item.weui-bar__item_on .weui-tabbar__label868194 {
                        color: #09bb07 !important;
                    }
                </style>
            </div>
        </div>
    </div>
</div>


<script type="text/html" id="customtpl">
    <li class="col-xs-3">
        <a href="<%=fullurl%>" data-url="<%=url%>" target="_blank" class="thumbnail"><img src="<%=fullurl%>" class="img-responsive"></a>
    </li>
</script>